package com.baizhi.dao;

import com.baizhi.entity.Auction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuctionDao{
    List<Auction> selectByPage(@Param("offset") int offset,@Param("rows") int rows);
    int count();
    void insert(Auction a);
    List<Auction> selectFuzzy(@Param("auctionName") String auctionName,@Param("auctionDesc") String auctionDesc,@Param("auctionStartTime") String auctionStartTime,@Param("auctionEndTime") String auctionEndTime,@Param("auctionUpset") double auctionUpset);
    void deleteById(int id);
    void updateById(Auction a);
    Auction selectById(int id);
}
